package top.layne.cloud.tsf.provider.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : layne
 * @Date: 2020/7/24
 * @Time: 14:41
 * Description:
 */
@RestController
public class EchoController {

    @GetMapping("/echo/{message}")
    public String echo(@PathVariable String message) {
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return message;
    }
}
